package org.example.dao;

import org.springframework.stereotype.Repository;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/4/15
 * Email haijunzhou@hnit.edu.cn
 */
@Repository
public class UserDao {

    public Object selectById(int id){
        System.out.println("--------selectById--------");
        return "OK";
    }

    public Object selectByName(String name){
        System.out.println("--------selectByName--------");
        // 类型转换异常
        Object a = "abc";
        Integer b = (Integer) a;
        return "Yes";
    }

    public Object deleteById(int id){
        System.out.println("--------deleteById--------");
        return "No";
    }

    public void update(Object obj){
        System.out.println("--------update--------");
    }
}
